package kmitl.comsci.bustacker;

import android.app.Activity;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.KeyEvent;
import android.widget.TextView;

public class AboutActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.about);
		
		Typeface fontFace = Typeface.createFromAsset(getAssets(),"fonts/THSarabunNew.ttf");
		((TextView) findViewById(R.id.about_text1)).setTypeface(fontFace);
		((TextView) findViewById(R.id.about_text2)).setTypeface(fontFace);
		((TextView) findViewById(R.id.about_text3)).setTypeface(fontFace);
		((TextView) findViewById(R.id.about_text4)).setTypeface(fontFace);
		((TextView) findViewById(R.id.about_text5)).setTypeface(fontFace);
		((TextView) findViewById(R.id.about_text6)).setTypeface(fontFace);
		((TextView) findViewById(R.id.about_text7)).setTypeface(fontFace);
		((TextView) findViewById(R.id.about_text8)).setTypeface(fontFace);
		((TextView) findViewById(R.id.about_text9)).setTypeface(fontFace);
		((TextView) findViewById(R.id.about_text10)).setTypeface(fontFace);
	}
	
	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		if ((keyCode == KeyEvent.KEYCODE_BACK)) {
			finish();
		}
		return super.onKeyDown(keyCode, event);
	}
}
